package com.shilei.search.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author 石雷
 * shilei1@jiayuan.com
 * 2021/4/1/001 16:49
 */
public class Punctuate {
    public static boolean isSymbol(String str)
    {

        Pattern patPunc = Pattern.compile("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？]$");


        Matcher matcher = patPunc.matcher(str);

       return  matcher.find();
    }

    public static void main(String[] args) {
        System.out.println(isSymbol(","));
    }
}
